package com.hellogood.yaohuo.server.serviceImpl;

import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.hellogood.yaohuo.server.mgr.factory.MgrFactory;
import com.hellogood.yaohuo.shared.services.QyOrgService;
import com.hellogood.yaohuo.shared.vo.QuyuVo;

@SuppressWarnings("serial")
public class QuyuOrgServiceImpl extends RemoteServiceServlet implements QyOrgService {

	@Override
	public List<QuyuVo> getAllQyOrgList() {
		return MgrFactory.getInstance().createQuyuOrgMgr().getQuyuOrg();
	}

	@Override
	public String updateOrgListForQuyu(List<String> orgCodeList, String quyuCode) {
		return MgrFactory.getInstance().createQuyuOrgMgr().updateOrgToQuyu(orgCodeList, quyuCode);
	}

	@Override
	public List<QuyuVo> getQuyuOrgByStaffCode(String staffCode) {
		return MgrFactory.getInstance().createQuyuOrgMgr().getQuyuVoOrg(staffCode);
	}

}
